package test
{
	import display.MainMenu;
	
	import flash.display.Sprite;
	import flash.display.StageScaleMode;
	
	import globals.$athena;
	import globals.$config;
	import globals.$root;
	import loaders.LoadManager;
	
	import timeslice.DisplayMainMenu;
	import timeslice.LoadURLResource;
	
	[SWF(width="1280", height="720", backgroundColor="0x000000")]

	public class MainMenuTest extends Sprite
	{
		public var main:MainMenu; 
		
		public function MainMenuTest()
		{
			stage.scaleMode = StageScaleMode.SHOW_ALL;
			$root = this;
			$config.ResourceRoot = "../asset/";
			var loader:LoadURLResource = new LoadURLResource(["flash/MainMenu.swf"], [LoadManager.TYPE_DISPLAY_OBJECT]);
			var display:DisplayMainMenu = new DisplayMainMenu;
			loader.appendNext(display);
			$athena.start(stage);
			$athena.addTimeSlice(loader);
		}
	}
}